package o;

import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;

public abstract class z {
    private CopyOnWriteArrayList<aa> ˋ = new CopyOnWriteArrayList();
    private boolean ˏ;

    @MainThread
    public abstract void ˏ();

    public z(boolean z) {
        this.ˏ = z;
    }

    @MainThread
    public final void ˎ(boolean z) {
        this.ˏ = z;
    }

    @MainThread
    public final boolean ˋ() {
        return this.ˏ;
    }

    @MainThread
    public final void ˎ() {
        Iterator it = this.ˋ.iterator();
        while (it.hasNext()) {
            ((aa) it.next()).ˎ();
        }
    }

    public void ˎ(@NonNull aa aaVar) {
        this.ˋ.add(aaVar);
    }

    public void ˊ(@NonNull aa aaVar) {
        this.ˋ.remove(aaVar);
    }
}
